const app = getApp()
Page({


  data: {
    catelist: ["男装", "女装", "零食", "家电", "床上用品", "家具"],
    bannerlist: [{
      url: "../../images/banner1.jpg"
    }, {
      url: "../../images/banner2.jpg"
    }, {
      url: "../../images/banner3.jpg"
    }]

  },
  danmulist: [{
      text: "网院",
      color: "#ff000",
      time: 1
    },
    {
      text: "电大",
      color: "#E64#69",
      time: 30

    }
  ],
  onLoad: function (options) {
    var id = options.id;
    console.log(id);


  },
  checkboxchange: function (e) {
    var then = this;
    var likestr = "";
    for (let index = 0; index < e.detail.value; index++) {
      likestr = likestr + e.detail.value[index];

    }
    console.log(likestr)
    then.setData({
      likes: e.detail.value[0]
    })
    console.log(e)
    console.log(e.detail.value[0])
  }
})